package com.zkthink.ceres.product.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.zkthink.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.zkthink.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 商品图片表
 * </p>
 *
 * @author JustArgo
 * @since 2020-05-07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ProductImgSaveDTO", description = "商品图片表")
public class ProductImgSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    private Long productId;
    /**
     * MAJ-主图 SEC-副图
     */
    @ApiModelProperty(value = "MAJ-主图 SEC-副图")
    @Length(max = 3, message = "MAJ-主图 SEC-副图长度不能超过3")
    private String imgPos;
    /**
     * 状态：1-启用，2-删除
     */
    @ApiModelProperty(value = "状态：1-启用，2-删除")
    private Integer status;
    /**
     * 图片的http访问路径
     */
    @ApiModelProperty(value = "图片的http访问路径")
    @Length(max = 500, message = "图片的http访问路径长度不能超过500")
    private String imgPath;
    /**
     * 显示顺序
     */
    @ApiModelProperty(value = "显示顺序")
    private Integer sortOrder;
    /**
     * 逻辑删除 1-删除 0-未删除
     */
    @ApiModelProperty(value = "逻辑删除 1-删除 0-未删除")
    private Integer isDelete;

}
